<script setup lang="ts">
const inputEvent = (e: Event) => {
  console.log((e.target as HTMLInputElement).value)
}
const btnClick = (e: MouseEvent) => {
  console.log(e)
}
</script>

<template>
  <div class="main">
    <input type="text" @input="inputEvent($event)" />
    <button @click="btnClick($event)">点击事件</button>
  </div>
</template>

<style></style>
